import { defineStore } from 'pinia'
export const useSettingStore = defineStore('Setting', {
  state: () => (
    {
      ldap: true,
      code: true,
      account: true,
      theme: '#FF8040',
      title: '',
      documentTitle: '',
      loginBg: '',
      loginDes: '',
      loginDesE: '',
      loginFormTitle: '',
      loginBtnText: '',
      loginLogoRightText: '',
      minlogoHeight: 16,
      minlogoTextSize: 12,
      minlogoTextWeight: 490,
      sidebarCollapsible: false,
      'menu--bg-color':"#000",
      'menu--text-color':"#fff",
      'menu--active-color':"",
      showRouteTabs: false,
      accountMaxLength: 64,
      foldPosition: 't',
      loginLogo: '',
      'navbarLayoutType': 'default', // default  colorful //头部导航条
      'sidebarLayoutSkin': 'default', // default dark  //侧边栏皮肤
      bgImg: '',
      logo: '',
      minlogo: '',
      favicon: '',
      loginByCode: false,
      loginByAccount: true,
      loginByLdap: false,
      resetPw: false,
      sso: {
        open: false,
        waiting: false,
        waitingInterval: 0,
        sessionKey: 'code',
        ldapRsPwLink: '',
        logoutUrl: ''
      },
    }
  ),
  getters: {},
  actions: {
    toggleTheme(val){
      this.theme = val
    },
    getSystemConfig() {
      
    },
    getPolicy() {
     
    },
    redirectITSM() {
     
    },
    setSessionid() {
    },
    getSessionid() {
     
    },
    removeSessionid() {
     
    },
    redirectSSORsPwLink() {
     
    },
    redirectSSOLogin() {
     
    }
  },
  persist: true
})
  
